//
//  SLUserPermissionsManager.h
//  shunlianPower2
//
//  Created by 陈镇 on 2019/7/4.
//  Copyright © 2019 顺联网络. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SLUserPermissionsManager : NSObject


//定位权限
+(void)isHaveLocationAuthorizationBlock:(void (^)(BOOL isCan))completionHandler;
//判断是否有相册读写权限
+(void)isHavePhotoPermissionsBlock:(void (^)(BOOL isCan))completionHandler;

//判断是否有相机权限
+ (void)isHaveCameraPermissionsBlock:(void(^)(BOOL isCan))completionHandler;

//判断有没有麦克风权限
+(void)isHaveAudioPermissionsBlock:(void(^)(BOOL isCan))completionHandler;

//判断是否有相机权限 并且有麦克风权限
+(void)isHaveCameraAndAudioPermissionsBlock:(void(^)(BOOL isCan))completionHandler;

//判断有没有日历权限
+(void)isHaveCalendarPermissionsBlock:(void(^)(BOOL isCan))completionHandler;


//判断有没有开启通知
+ (void)isHaveNotificationPermissionsBlock:(nullable void(^)(BOOL isCan))completionHandler;

+ (void)isDeterminedNotificationPermissionsBlock:(nullable void(^)(BOOL isCan))completionHandler;

@end

@interface SLUserPermissionsAlert : NSObject

+(void)showViewTitle:(NSString *)title block:(void (^)(NSInteger index))block;

+(void)gotoUserNotificationSetting;
@end

NS_ASSUME_NONNULL_END
